<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/act.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">


<style type="text/css">
    table.cityList {
        margin: 10px 0px;
        border: 1px solid #999;
        text-align: center;
    }

    .actimg {
        width: 80px;
    }
</style>
</head>
<body>

    <div class="manage">
        <span><a href="{:U('Special/main')}">活动管理</a></span><span><a href="#">运营管理</a></span>
    </div>

    <div class="act_main"><a href="{:U('Special/main')}">活动管理</a>
        <span class="act-nav">
            <a href="{:U('Special/main')}">专题活动</a>
        </span>
    </div>
    <div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all" data-type="{$type}">
                 <a href="{:U('Special/main')}">专题活动</a>
            </span>
            <span class="ac_color">（
                <if condition="($list['data']['list']['count'])">
                    <i>{$list['data']['list']['count'][0]}</i>个专题活动
                    <else/>
                  <i>0</i>个专题活动
                </if>
                        )</span>

        </div>
        <div class="act_right">
            <ul>
               <li><a href="{:U('Special/add')}" target="_blank"> > <span>添加专题活动</span></a>
            </ul>
        </div>
    </div>
    <!--<form class="well" method="post" action="{:U('Activites/listActivite')}">-->
    <!--<input type="text" name="title" placeholder="输入活动名称后查找"> <button type="submit" class="btn btn-primary">查找</button>-->
    <!--</form>-->

    <table cellpadding="2" cellspacing="0" width="80%" align="center" id="timeDesc"
           class="Joperate tablesorter tablesorter-blue table table-hover table-bordered table-list">
        <thead>
        <tr role="row" class="tablesorter-headerRow">
            <th><input type="checkbox" data-id="" class="check_all_activity"></th>
            <th>活动ID</th>
            <th>活动名称</th>
            <th>活动类型</th>
            <th>添加时间</th>
            <th class="tablesorter-header tablesorter-headerUnSorted Jdesc"><a href="#" class="">更新时间</a><span class="desc">( <i>降序</i> )</span></th>
            <th>活动链接</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list['data']['list']['list']" item="vo">
            <tr>
                <td><input type="checkbox" data-id=""></td>
                <td>{$vo.IDNew}</td>
                <td class="act-name">{$vo.Name}<a class="act-view"
                                                  href="{:U('Special/view',array('id'=>$vo['ID']))}"></a></td>
                <td>{$vo.Type}</td>
                <td>{$vo.AddTime}</td>
                <td>{$vo.UpdateTime}</td>
                <td>{$vo.total}个链接 <a href="javascript:void(0)" class="Jcopy" data-href="">（查看链接）</a>
                    <foreach name="vo.shopdetail" item="val" key="key">
                        <input type="hidden" data-city="{$key}" value="{$val.url}" class="shop-url">
                    </foreach>
                </td>

            </tr>
        </foreach>
        </tbody>

    </table>

    <div class="act_more">
        <div class="text-center"><a href="javascript:void(0)" class="JMoreActivity">加载更多活动</a></div>
    </div>

</div>
<script type="text/javascript">
    var getMoreActicityUrl = "{:U('Special/getMore')}";
    var getViewUrl = "{:U('Special/view')}";
    $(function () {
        $("#timeDesc").tablesorter();

        $('.tablesorter-header').click(function(){
            if($(this).hasClass('Jdesc')){
                $(this).find('i').text('正序');
                $(this).removeClass('Jdesc');
            }else{
                $(this).find('i').text('降序');
                $(this).addClass('Jdesc');
            }
        })
    });
</script>
<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>


<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/act.js"></script>
<script src="__PUBLIC__/js/main.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.widgets.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/tablesorter/dist/css/theme.default.min.css">
</body>
</html>